package com.hspedu.List_;

import java.util.LinkedList;

public class linkedListCRUD {

    public static void main(String[] args) {
        LinkedList linkedList = new LinkedList();
        linkedList.add(1);
        linkedList.add(2);
        linkedList.add(3);
        System.out.println(linkedList);

        //默认删除的是第一个元素
        linkedList.remove();
        System.out.println(linkedList);
    }
}
